<?php
use app\modules\clinical\models\Patient;
use app\modules\clinical\models\ExcelCmt;

$params = ExcelCmt::getParams();
?>

  <!-- 第二部分 -->
  <tr class="title">
      <td colspan="6"><h4>一、患者信息与表格信息</h4></td>
  </tr>
  <tr>
      <th>姓名</th>
      <td><?= ($model->rel_id == 0) ? Yii::$app->session->get('pt_name') : Patient::findOne(['pk_id'=>$model->pt_id])->pt_name ?></td>
      <th>与患者关系</th>
      <td colspan="2"><?= ($model->rel_id == 0) ? '本人' : $params['relation'][$rel[$model->pt_id]] ?></td>
  </tr>
  <tr>
      <th>创建人</th>
      <td><?= $model->crt_name ?></td>
      <th>创建时间</th>
      <td colspan="3"><?= $model->crt_time ?></td>
  </tr>
  <tr>
      <th>修改人</th>
      <td><?= $model->update_name ?></td>
      <th>修改时间</th>
      <td colspan="3"><?= $model->update_at ?></td>
  </tr>
  <tr class="title">
      <td colspan="5"><h4>二、病史资料</h4></td>
  </tr>
  <tr>
      <th width="180px">发病年龄</th>
      <td><?= $model->excel->pt_age ?></td>
      <th>现病史</th>
      <td colspan="2"><?= $model->excel->pt_history ?></td>
  </tr>
  <tr class="title">
      <td colspan="5"><h4>三、体征</h4></td>
  </tr>
  <tr>
      <th>畸形：弓形足</th>
      <td colspan="4"><?= $params['youwu'][$model->excel->bd_jixing] ?></td>
  </tr>
  <tr>
      <th>肌萎缩（鹤腿）</th>
      <th>左侧</th>
      <td><?= $params['youwu'][$model->excel->bd_weisuo_l] ?></td>
      <th>右侧</th>
      <td><?= $params['youwu'][$model->excel->bd_weisuo_r] ?></td>
  </tr>
  <tr>
      <th rowspan="2">肌力</th>
      <th>左上肢</th>
      <td><?= $model->excel->bd_jili_lu ?></td>
      <th>左下肢</th>
      <td><?= $model->excel->bd_jili_ld ?></td>
  </tr>
  <tr>
      <th>右上肢</th>
      <td><?= $model->excel->bd_jili_ru ?></td>
      <th>右下肢</th>
      <td><?= $model->excel->bd_jili_rd ?></td>
  </tr>
  <tr>
      <th rowspan="2">腱反射</th>
      <th>膝反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_xi] ?></td>
      <th>跟腱反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_gen] ?></td>
  </tr>
  <tr>
      <th>肱二头肌反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_gong] ?></td>
      <th>绕反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_rao] ?></td>
  </tr>
  <tr>
      <th>感觉障碍</th>
      <td colspan="4"><?= $params['youwu'][$model->excel->bd_zhangai] ?></td>
  </tr>
  <tr>
      <th>植物神经功能</th>
      <td colspan="4"><?= $model->excel->bd_shenjing ?></td>
  </tr>
  <tr>
      <th>步态</th>
      <td colspan="4"><?= $model->excel->bd_butai ?></td>
  </tr>
  <tr>
      <th>共济</th>
      <th>Romberg征</th>
      <td><?= $params['youwu'][$model->excel->bd_romberg] ?></td>
      <th>共济运动</th>
      <td><?= $params['youwu'][$model->excel->bd_gongji] ?></td>
  </tr>
  <tr>
      <th>并发：心脏</th>
      <td colspan="4"><?= $params['youwu'][$model->excel->bd_bingfa] ?></td>
  </tr>
  <tr>
      <th rowspan="2">其他</th>
      <th>眼疾麻痹</th>
      <td><?= $params['youwu'][$model->excel->bd_else_yanji] ?></td>
      <th>视神经萎缩</th>
      <td><?= $params['youwu'][$model->excel->bd_else_shi] ?></td>
  </tr>
  <tr>
      <th>眼震</th>
      <td colspan="3"><?= $params['youwu'][$model->excel->bd_else_yanzh] ?></td>
  </tr>
